﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="DSDHChuaThanhToanGiaoHang.aspx.cs" Inherits="employer_DSDHChuaThanhToanGiaoHang" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phContent" Runat="Server">
<form id="frmMain" runat="server">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="title">
                Danh sách đơn hàng chưa thanh toán</td>
        </tr>
        <tr class="separator">
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="GridTitle">
                Danh Sách Đơn Hàng</td>
        </tr>
        <tr>
            <td>
                <div id="DIVWithScrolling" runat="server">
                    <div id="DIVContainer" runat="server">
                        <asp:GridView ID="grdOrders" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                            PageSize="10">
                            <Columns>
                                <asp:TemplateField HeaderText="Mã Hóa Đơn">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOrderId" runat="server" Text='<%# Bind("OrderId") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tên">
                                    <ItemTemplate>
                                        <asp:Label ID="lblName" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" Width="50px"/>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Khách Hàng">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustomerId" runat="server" Text='<%# Bind("CustomerId") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" Width="50px"/>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ngày Đặt">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOrderDate" runat="server" Text='<%# Bind("OrderDate") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ngày Gửi">
                                    <ItemTemplate>
                                        <asp:Label ID="lblDateSend" runat="server" Text='<%# Bind("DateSend") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Left" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Địa Chỉ">
                                    <ItemStyle Width="130px" />
                                    <HeaderStyle Width="130px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDateSend" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Xóa">
                                    <HeaderStyle HorizontalAlign="Left" Width="70px" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkDelete" CommandName='Delete' OnClientClick="return confirm('Bạn có chắc muốn xóa user này không ?')"
                                            CommandArgument='<%#Eval("OrderId")%>' runat="server">Xoá</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cập Nhật">
                                    <HeaderStyle HorizontalAlign="Left" Width="70px" />
                                    <ItemTemplate>
                                        <a href="./XemThongTinGioHang.aspx?id=<%#Eval("OrderId")%>">Cập Nhật</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Xem Chi Tiết">
                                    <HeaderStyle HorizontalAlign="Left" Width="70px" />
                                    <ItemTemplate>
                                        <a href="ThongTinChiTietDonHang.aspx?id=<%#Eval("OrderId")%>">Xem Chi Tiết</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
                 
            </td>
        </tr>
        <tr>
            <td align="right">
                   <asp:Button ID="btnUpdate" runat="server" Text="Update" CssClass="Button"/>
            </td>
        </tr>
    </table>
    </form>
</asp:Content>

